/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.webdeve;

import entities.User;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
 

/**
 *
 * @author Garfield
 */
public class Account extends BaseServlet {

    @Override
    public void executeCustomCode(HttpServletRequest request, HttpServletResponse response) {
        PrintWriter out = null;
        try {
            
            response.setContentType("text/html;charset=UTF-8");
            out = response.getWriter();
            HttpSession session = request.getSession();
            User myUser = (User) session.getAttribute("user");
 
        } catch (IOException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } finally {
            out.close();
        }
        
    }

}











